Created: 2022-08-19
Tags: #fleeting
Int Constants -> 12345
Float Constants -> 13.4F
Ends with F or f
Octal Constants -> 036
Octal has three digits on it 000 000
Hexadecimal Constants-> 0x37
A leading 0x means hexadecimal
Character Constant:
Character Constant to make char ASCII compatible
String Constant:
Are characters surrounded in ""
String constants can be concatenated at compile time: Like this below
printf("Hello"
"Madam");
prints to -> Hello Madam
234L or 234lEnds with `L` or `l`
u or U123U
Remember that unsigned is a qualifer therefore is an extension to the Basic Data Types in C
Example: 0xFUL
Means written in Hexadecimal 0x
on Unsigned Long UL constant with value F on hexa but 15 on decimal
Constant Expression
That's actually it, it's an expression filled with constants